package com.zhanghe.study.design_pattern.stragety_pattern;

/**
 * @author zh
 * @date 2022/10/16 17:25
 */
public class Context {
    private Strategy strategy;

    public Context(Strategy strategy){
        this.strategy = strategy;
    }

    public void contextInterface(){
        strategy.algorithms();
    }
}
